#include <iostream>
using namespace std;

class A
{
public:
	A(int n = 1)
		:a(n)
	{}

	void print()
	{
		cout << a << endl;
	}

private:
	int a;
};

template<class T1, class T2>
T1 Add(T1 left, T2 right)
{
	return left + right;
}


int main()
{
	A a;

	A* p1 = new A(2);
	p1->print();

	int* parr = new int[10] {0};
	for (int i = 0; i < 10; i++)
	{
		cout << parr[i] << " ";
	}
	cout << endl;

	cout << Add(1, 1) << endl;
	cout << Add<double>(2.4, 4.9) << endl;

	return 0;
}